




















































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





















































































Question 1. Which IAM entity is primarily used to grant temporary security credentials to applications running on Amazon EC2? A) IAM User B) IAM Group C) IAM Role D) IAM Policy Answer: C Explanation: IAM Roles provide temporary credentials that can be assumed by EC2 instances, enabling secure access without embedding long‑term keys. Question 2. In an IAM policy JSON, which element defines the specific AWS service actions that are allowed or denied? A) Effect B) Action C) Resource D) Condition Answer: B Explanation: The “Action” element lists the API operations (e.g., s3:PutObject) that the statement applies to. Question 3. What is the primary benefit of using AWS Managed Policies over Customer Managed Policies? A) They can be edited directly by the account owner. B) They are automatically updated by AWS to include new services. C) They allow granular resource‑level permissions. D) They are only usable in the root account. Answer: B
Explanation: AWS Managed Policies are maintained by AWS and receive updates when new services or actions are added, reducing administrative effort. Question 4. Which of the following best describes the “Least Privilege” principle in IAM? A) Granting users full admin rights to all resources. B) Allowing users to create their own policies. C) Providing only the permissions necessary to perform required tasks. D) Assigning a single policy to every user. Answer: C Explanation: Least privilege limits permissions to the minimum required, reducing the attack surface if credentials are compromised. Question 5. When configuring SAML 2.0 federation with an external IdP, which AWS component receives the SAML assertion? A) IAM User B) IAM Role C) AWS Organizations D) AWS Config Answer: B Explanation: The SAML assertion maps to an IAM Role that the federated user assumes, granting temporary permissions. Question 6. Which MFA device type provides the highest level of security for the AWS root account? A) Virtual MFA app on a smartphone B) SMS text‑message MFA C) Hardware MFA token (e.g., Gemalto)
B) Amazon RDS C) AWS Certificate Manager D) Amazon DynamoDB Answer: A Explanation: Secrets Manager securely stores, rotates, and retrieves secrets such as API keys and passwords for applications. Question 10. Which of the following statements about AWS Cognito User Pools is true? A) They provide a managed LDAP directory. B) They enable S3 bucket encryption. C) They handle user sign‑up, sign‑in, and profile management. D) They replace IAM Roles for EC2 instances. Answer: C Explanation: Cognito User Pools are a fully managed user directory that handles authentication and user profile storage for web and mobile apps. Question 11. In a VPC, which component is stateful and automatically allows return traffic? A) Network ACL (NACL) B) Security Group C) Route Table D) VPC Peering Connection Answer: B Explanation: Security Groups are stateful firewalls; when an inbound rule permits traffic, the corresponding outbound response is automatically allowed.
Question 12. Which VPC component is stateless and must have both inbound and outbound rules defined explicitly? A) Security Group B) Network ACL C) Internet Gateway D) VPC Endpoint Answer: B Explanation: NACLs evaluate each rule separately for inbound and outbound traffic; they do not track connection state. Question 13. What is the primary advantage of using VPC Endpoints (Interface endpoints) over Internet Gateways for accessing AWS services? A) They provide higher bandwidth. B) Traffic never leaves the Amazon network, reducing exposure to the public internet. C) They automatically encrypt data in transit. D) They allow cross‑region service access. Answer: B Explanation: Interface Endpoints keep traffic within the AWS backbone, eliminating public internet exposure and improving security. Question 14. Which AWS service protects web applications from SQL injection and cross‑site scripting attacks? A) AWS Shield B) AWS WAF C) Amazon GuardDuty D) AWS Config Answer: B
C) Symmetric key D) Imported key material Answer: C Explanation: S3 uses symmetric CMKs for envelope encryption, offering lower latency and higher throughput than asymmetric keys. Question 18. Which of the following AWS services can automatically rotate secrets stored in Secrets Manager? A) AWS Key Management Service (KMS) B) AWS Systems Manager Parameter Store C) AWS Lambda (custom rotation) D) AWS Certificate Manager (ACM) Answer: C Explanation: Secrets Manager can invoke a Lambda function to rotate credentials on a schedule, supporting many database and service types. Question 19. An organization needs to provision TLS certificates for an Elastic Load Balancer without managing the certificate lifecycle. Which service should they use? A) AWS Certificate Manager (ACM) B) IAM Server Certificates C) AWS KMS D) AWS Secrets Manager Answer: A Explanation: ACM issues, validates, renews, and deploys SSL/TLS certificates directly to ELB, CloudFront, and API Gateway.
Question 20. Which Amazon S3 feature blocks all public access to buckets and objects, regardless of bucket policies or ACLs? A) S3 Block Public Access B) S3 Versioning C) S3 Transfer Acceleration D) S3 Object Lock Answer: A Explanation: Block Public Access provides account‑wide or bucket‑level settings that override any policy or ACL that would otherwise allow public access. Question 21. An S3 bucket must allow read‑only access to objects for any authenticated AWS user but deny access for the public internet. Which combination achieves this? A) Bucket Policy with Principal "", Effect "Allow" B) Bucket Policy with Condition aws:PrincipalIsAWSService C) Bucket Policy with Principal "AWS" and Condition aws:userid equals "", plus Block Public Access disabled D) Bucket Policy with Principal "AWS" and Condition aws:userid not equal to "anonymous", and Block Public Access enabled Answer: D Explanation: Using a bucket policy that allows the "AWS" principal (authenticated AWS accounts) while Block Public Access prevents anonymous (public) access. Question 22. Which of the following statements about Amazon EBS encryption is correct? A) Encryption must be enabled at the instance level. B) Encrypted snapshots can be shared with unencrypted volumes. C) Encryption is performed by AWS KMS and is transparent to the OS. D) Only asymmetric CMKs can be used for EBS encryption.
B) AWS CloudTrail C) AWS Config D) AWS Trusted Advisor Answer: B Explanation: CloudTrail records every API call made in an account, enabling detection of anomalous or unauthorized actions. Question 26. Which CloudWatch feature can automatically trigger a remediation action when a specific security finding occurs? A) CloudWatch Alarms with SNS notification only B) CloudWatch Logs Insights queries C) CloudWatch Events (now EventBridge) with a target Lambda function D. CloudWatch Metrics Explorer Answer: C Explanation: EventBridge can route specific events (e.g., a GuardDuty finding) to a Lambda function that performs automated remediation. Question 27. What does AWS Config’s “Configuration Recorder” capture? A) Network traffic flow logs. B) Detailed resource configuration snapshots and relationship changes. C) Encryption keys usage. D) IAM user password policies. Answer: B Explanation: The Config recorder continuously records configuration changes and resource relationships for compliance auditing.
Question 28. Which AWS service uses machine learning to identify potentially compromised EC2 instances based on behavior? A) AWS GuardDuty B) AWS Inspector C) AWS Security Hub D) AWS Detective Answer: A Explanation: GuardDuty analyzes VPC flow logs, CloudTrail events, and DNS logs using ML to detect anomalous activity such as crypto‑miner infections. Question 29. An analyst needs to investigate a suspicious IAM credential compromise that may have been used across multiple accounts. Which service provides a unified view of findings? A) AWS Config B) AWS Security Hub C) AWS Trusted Advisor D) AWS CloudFormation Answer: B Explanation: Security Hub aggregates findings from GuardDuty, Inspector, Macie, and other services, offering a consolidated security posture view. Question 30. Which tool is designed to perform automated vulnerability assessments on EC2 instances and container images? A) Amazon Inspector B) AWS Shield C) AWS WAF D) AWS Config Rules
B) AWS Shield Advanced C) AWS GuardDuty D) AWS Config Answer: A Explanation: WAF can block outbound HTTP requests from the application to the metadata IP, preventing SSRF exploitation. Question 34. In Amazon EKS, which Kubernetes object is used to enforce the principle of least privilege for pods? A) ServiceAccount with IAM Role (IRSA) B) ConfigMap C) DaemonSet D) Ingress Controller Answer: A Explanation: IAM Roles for Service Accounts (IRSA) map Kubernetes ServiceAccounts to specific IAM roles, limiting pod permissions. Question 35. Which best practice reduces the risk of over‑privileged Lambda functions? A) Assign the AWSLambdaFullAccess managed policy to every function. B) Use a single role for all functions in an account. C) Create a dedicated IAM role per function with only required permissions. D) Enable Lambda versioning. Answer: C Explanation: Granting each Lambda function a minimal, purpose‑specific role follows least privilege and limits blast radius.
Question 36. A security engineer wants to enforce that all S3 buckets have versioning enabled. Which AWS feature can automatically remediate non‑compliant buckets? A) AWS Config rule with auto‑remediation using a Lambda function. B) CloudTrail event subscription. C) S3 Access Points. D) IAM policy with deny on bucket creation. Answer: A Explanation: Config can detect buckets without versioning and trigger a Lambda function to enable it automatically. Question 37. Which of the following is a recommended method to protect AWS access keys from accidental exposure in code repositories? A) Embed the keys in environment variables on the EC2 instance. B) Store the keys in a public S3 bucket. C) Use AWS Secrets Manager and reference the secret in the application at runtime. D) Hard‑code the keys in the source code for simplicity. Answer: C Explanation: Secrets Manager securely stores and rotates credentials, and applications retrieve them programmatically, avoiding hard‑coding. Question 38. What is the primary purpose of Amazon Macie? A) Detect DDoS attacks. B) Scan S3 objects for sensitive data such as PII. C) Perform network traffic analysis. D) Manage IAM roles. Answer: B
C) Service Control Policy with region condition keys D) Both A and C Answer: D Explanation: Both IAM policies and SCPs can use the aws:RequestedRegion condition key to limit actions to specific regions. Question 42. What is the primary security benefit of using AWS PrivateLink for accessing AWS services? A) Automatic data encryption in transit. B) Reducing latency by using edge locations. C) Keeping traffic within the AWS network, avoiding the public internet. D) Providing DNS resolution for services. Answer: C Explanation: PrivateLink creates an interface endpoint that routes traffic privately, eliminating exposure to the public internet. Question 43. Which of the following is a true statement about AWS Shield Advanced? A) It is automatically enabled for all accounts at no cost. B) It provides 24/7 DDoS response team (DRT) access and cost protection. C) It replaces the need for AWS WAF. D) It only protects Amazon S3 buckets. Answer: B Explanation: Shield Advanced offers enhanced DDoS mitigation, access to the DRT, and financial protection against scaling charges during attacks. Question 44. When configuring an Amazon RDS instance with encryption, which component must also be encrypted to maintain end‑to‑end security?
A) The DB parameter group. B) The underlying EBS volume. C) The VPC subnet. D) The IAM role attached to the instance. Answer: B Explanation: RDS encryption uses an encrypted EBS volume; the data at rest is protected by the underlying storage encryption. Question 45. Which of the following is the most secure way to grant a third‑party vendor limited access to a specific S3 bucket? A) Create an IAM user with long‑term access keys and attach a bucket policy. B) Provide the vendor with the root account credentials. C) Use a pre‑signed URL that expires after a short time. D) Create an IAM role with a trust policy allowing the vendor’s AWS account to assume it, and attach a bucket policy. Answer: D Explanation: Cross‑account IAM role assumption with a scoped bucket policy follows least privilege and avoids sharing permanent credentials. Question 46. Which AWS service provides a central console to view and prioritize security findings from GuardDuty, Inspector, and Macie? A) AWS Security Hub B) AWS Config C) AWS Trusted Advisor D) AWS IAM Access Analyzer Answer: A
C) AWS Shield D) Amazon GuardDuty Answer: A Explanation: Access Analyzer identifies resources that are shared with external principals and flags policies that grant broad access. Question 50. What is the primary purpose of Amazon Inspector’s “Network Reachability” rules package? A) Detect open ports and services that can be accessed from the internet. B) Scan for vulnerable software packages. C) Verify IAM permissions. D) Monitor CPU utilization. Answer: A Explanation: The Network Reachability package evaluates whether an instance’s ports are reachable from the internet, identifying potential exposure. Question 51. Which of the following best describes the difference between a security group and a NACL? A) Security groups are applied at the subnet level; NACLs at the instance level. B) Security groups are stateful; NACLs are stateless. C) NACLs support IPv6; security groups do not. D) Security groups can deny traffic; NACLs cannot. Answer: B Explanation: Security groups track connection state and automatically allow return traffic, while NACLs evaluate each packet independently.
Question 52. In AWS Organizations, what is the effect of attaching an SCP that denies “s3:DeleteObject” to an OU? A) All accounts in the OU will be unable to delete any S3 objects, regardless of IAM permissions. B) Only the root user is affected. C) The deny can be overridden by an explicit allow in an IAM policy. D) The SCP only applies to new accounts created after the policy attachment. Answer: A Explanation: SCP denies are absolute; they cannot be overridden by IAM allow statements, so the action is blocked for all identities in the OU. Question 53. Which AWS service can be used to centrally manage encryption keys across multiple AWS accounts? A) AWS KMS with a multi‑region key B) AWS CloudHSM C) AWS Secrets Manager D) AWS Certificate Manager Answer: A Explanation: KMS supports multi‑region keys and can be shared across accounts via key policies, enabling centralized key management. Question 54. A developer needs to store a PEM‑encoded TLS certificate for use by an Application Load Balancer. Which service should they use? A) AWS Certificate Manager (ACM) B) AWS Secrets Manager C) AWS KMS D) AWS IAM Server Certificates (deprecated) Answer: A