
Answer-first summary for fast verification
Answer: Create separate IAM roles for each microservice with the minimum required permissions, and assign them accordingly.
The best practice for securing access to AWS resources is to follow the principle of least privilege. This means granting only the permissions necessary for each microservice to perform its tasks. Option B is the correct approach as it involves creating separate IAM roles for each microservice with the minimum required permissions. This ensures that if one microservice is compromised, the attacker cannot gain access to other microservices or resources.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
Your company is implementing a new microservices architecture on AWS, and you are responsible for setting up the necessary authentication mechanisms. You need to ensure that each microservice can access the required AWS resources securely. Which of the following steps should you take to achieve this?
A
Create a single IAM role with all necessary permissions and assign it to all microservices.
B
Create separate IAM roles for each microservice with the minimum required permissions, and assign them accordingly.
C
Use a single IAM user with all necessary permissions and share the credentials among all microservices.
D
Create a single IAM group with all necessary permissions and add all microservices to the group.