








































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 CloudWatch metric would you monitor to detect a CPU bottleneck on an EC instance? A) NetworkIn B) DiskReadOps C) CPUUtilization D) StatusCheckFailed Answer: C Explanation: CPUUtilization measures the percentage of allocated EC2 compute capacity that is being used; a high value indicates a CPU bottleneck. Question 2. In CloudWatch Alarms, what action can be triggered when the alarm state changes to ALARM? A) Launch a new IAM user B) Publish to an SNS topic C) Delete the CloudWatch log group D) Disable CloudTrail logging Answer: B Explanation: CloudWatch Alarms can invoke SNS notifications, which can then trigger email, SMS, or Lambda functions. Question 3. Which of the following is a custom metric in CloudWatch? A) NetworkOut B) DiskWriteBytes C) MyAppRequestCount (published by the application) D) CPUCreditBalance Answer: C Explanation: Custom metrics are defined and published by users; “MyAppRequestCount” is an example.
Question 4. What feature of CloudWatch Logs allows you to search and analyze log data without moving it to another service? A) Logs Insights B) Logs Exporter C) Logs Archiver D) Logs Scheduler Answer: A Explanation: CloudWatch Logs Insights provides a query language to analyze log data directly in CloudWatch. Question 5. Which AWS service records API calls made in your account for auditing purposes? A) AWS Config B) AWS CloudTrail C) AWS GuardDuty D) AWS Inspector Answer: B Explanation: CloudTrail captures API activity across AWS services, providing an audit trail. Question 6. To automatically remediate a non‑compliant EC2 security‑group configuration, which combination is most appropriate? A) AWS Config rule + Lambda function B) CloudWatch metric + SNS topic C) S3 bucket versioning + CloudFront D) IAM policy + KMS key rotation Answer: A Explanation: AWS Config can detect non‑compliance and trigger a Lambda that modifies the security group.
Question 10. When configuring an Auto Scaling group for predictive scaling, which data source does the service primarily use? A) CloudTrail logs B) Amazon Athena query results C) Historical CloudWatch metric data D) S3 bucket inventory Answer: C Explanation: Predictive scaling analyzes past metric trends (e.g., CPU) to forecast future capacity needs. Question 11. To achieve high availability across Availability Zones for a web tier, which architecture component is essential? A) Single subnet B) Multi‑AZ RDS instance only C) Elastic Load Balancer spanning multiple AZs D) IAM role attached to the EC2 instances Answer: C Explanation: An ELB distributes traffic across instances in multiple AZs, providing HA. Question 12. Which AWS Backup feature allows you to enforce a retention policy for EBS snapshots? A) Backup Vault lock B) Lifecycle policies C) Cross‑region copy only D) Backup plan tags Answer: B Explanation: Lifecycle policies define transition and expiration rules for backup copies. Question 13. What is the purpose of Amazon EBS snapshots? A) To replicate data across regions automatically
B) To create point‑in‑time copies of an EBS volume for backup or restoration C) To encrypt data at rest without KMS D) To host static website content Answer: B Explanation: Snapshots capture the state of an EBS volume at a specific point in time. Question 14. Which S3 feature provides automatic replication of objects to another AWS Region? A) S3 Transfer Acceleration B) S3 Cross‑Region Replication (CRR) C) S3 Event Notifications D) S3 Object Lock Answer: B Explanation: CRR copies objects automatically to a destination bucket in a different region. Question 15. In an Amazon RDS Multi‑AZ deployment, what happens during a planned maintenance window? A) The primary instance is rebooted only; no failover occurs. B) A standby instance is promoted, and the old primary becomes standby. C) The database is taken offline for the entire duration. D) Read replicas are automatically created. Answer: B Explanation: RDS performs a failover to the standby, ensuring minimal disruption during maintenance. Question 16. Which disaster‑recovery strategy has the lowest Recovery Time Objective (RTO) but higher cost? A) Pilot Light B) Warm Standby C) Multi‑site active‑active
Answer: A Explanation: StackSets enable centralized management of stacks across many accounts/regions. Question 20. Which AWS service automates the creation and rotation of Amazon Machine Images (AMIs)? A) EC2 Image Builder B) Systems Manager Automation C) AWS Backup D) Elastic Beanstalk Answer: A Explanation: EC2 Image Builder defines pipelines to build, test, and distribute AMIs on a schedule. Question 21. What does AWS Elastic Beanstalk primarily abstract for developers? A) Network routing tables B) Underlying EC2 instance provisioning, load balancing, and auto scaling C) IAM policy generation D) Direct access to S3 bucket ACLs Answer: B Explanation: Elastic Beanstalk handles infrastructure provisioning, scaling, and health monitoring. Question 22. OpsWorks uses which configuration‑management engines? A) Ansible and Terraform B) Chef and Puppet C) CloudFormation and CDK D) SaltStack and Docker Swarm Answer: B Explanation: OpsWorks supports Chef and Puppet for managing instance configurations.
Question 23. Which Systems Manager capability enables you to store encrypted secrets such as database passwords? A) Parameter Store (SecureString) B) Patch Manager C) State Manager D) Session Manager Answer: A Explanation: Parameter Store SecureString parameters encrypt values using KMS. Question 24. Which SSM feature automatically applies OS patches to managed instances on a defined schedule? A) Run Command B) Patch Manager C) Distributor D) Automation Answer: B Explanation: Patch Manager scans and installs missing patches according to the defined baseline. Question 25. In IAM, what is the main difference between an inline policy and a managed policy? A) Inline policies can be attached to multiple users; managed policies cannot. B) Managed policies are versioned and reusable across principals; inline policies are embedded directly in a single principal. C) Inline policies support condition keys; managed policies do not. D) Managed policies are only for service roles. Answer: B Explanation: Managed policies are standalone, versioned, and can be attached to many entities, while inline policies are defined within a single user, group, or role.
C) It encrypts data in transit between the client and S3. D) It disables versioning to prevent accidental restores. Answer: B Explanation: Default encryption applies server‑side encryption to every object uploaded without requiring the client to specify encryption. Question 30. Which of the following is a stateful firewall in AWS? A) Network ACL B) Security Group C) VPC route table D) AWS WAF Answer: B Explanation: Security groups track connection state and allow return traffic automatically. Question 31. What is the primary purpose of AWS Shield Advanced? A) To provide DDoS protection with additional WAF integration and cost protection B) To scan EC2 instances for malware C) To encrypt data at rest automatically D) To manage IAM permissions across accounts Answer: A Explanation: Shield Advanced adds enhanced DDoS mitigation, WAF integration, and financial safeguards. Question 32. Which AWS service runs vulnerability scans against EC2 instances and container images? A) GuardDuty B) Inspector C) Macie D) Config
Answer: B Explanation: Amazon Inspector assesses security posture and identifies vulnerabilities. Question 33. In a VPC, which component provides outbound internet access for resources in private subnets? A) Internet Gateway B) NAT Gateway C) VPC Peering D) Transit Gateway Answer: B Explanation: NAT Gateways enable instances in private subnets to initiate outbound traffic to the internet. Question 34. Which routing option in a VPC route table directs traffic to the internet for public subnets? A) Local route (10.0.0.0/16) B) 0.0.0.0/0 → Internet Gateway C) 0.0.0.0/0 → NAT Gateway D) 10.0.0.0/16 → VPC Peering Answer: B Explanation: A default route (0.0.0.0/0) pointing to an Internet Gateway enables internet egress for public subnets. Question 35. What is the main difference between a VPC peering connection and a Transit Gateway? A) Peering works only within the same region; Transit Gateway works across regions. B) Transit Gateway supports hub‑and‑spoke architectures and can connect many VPCs, whereas peering is a point‑to‑point link. C) Peering automatically encrypts traffic; Transit Gateway does not. D) Transit Gateway replaces the need for route tables.
Explanation: Reachability Analyzer evaluates network paths and identifies why traffic cannot reach a destination. Question 39. Which cost‑allocation technique allows you to attribute AWS usage to a specific project or department? A) Tagging resources with cost allocation tags B) Enabling S3 Transfer Acceleration C) Using IAM roles for each department D) Deploying a dedicated VPC per project Answer: A Explanation: Cost allocation tags are used by Cost Explorer and the CUR to break down spend by business unit. Question 40. Which purchasing model provides the lowest price for fault‑tolerant, flexible workloads that can be interrupted? A) On‑Demand B) Reserved Instances C) Spot Instances D) Savings Plans Answer: C Explanation: Spot Instances can be purchased at steep discounts but may be reclaimed with a two‑minute warning. Question 41. What does AWS Compute Optimizer analyze to recommend right‑sizing for EC instances? A) CloudTrail event logs B) Historical CPU, memory, network, and disk metrics C) S3 bucket size trends D) IAM policy usage statistics Answer: B
Explanation: Compute Optimizer uses utilization metrics to suggest optimal instance types. Question 42. Which Trusted Advisor check helps you identify “zombie” resources? A) Security groups – least privilege B) Underutilized Amazon EC2 instances C) S3 bucket versioning enabled D) RDS backup retention period Answer: B Explanation: The “Underutilized EC2 instances” check highlights instances with low utilization that may be unnecessary. Question 43. In the Well‑Architected Operational Excellence pillar, what is the purpose of “runbooks”? A) To define IAM policies for services B) To provide documented procedures for responding to operational events C) To store encrypted secrets for applications D) To automate VPC creation via CloudFormation Answer: B Explanation: Runbooks are step‑by‑step guides for handling incidents, improving response consistency. Question 44. Which AWS CLI command lists all CloudWatch alarms in the “ALARM” state? A) aws cloudwatch describe-alarms --state-value ALARM B) aws cloudwatch list-metrics --state ALARM C) aws logs describe-alarms --status ALARM D) aws ec2 describe-alarms --state ALARM Answer: A Explanation: The describe-alarms operation accepts a --state-value filter.
B) AWS Shield C) Amazon GuardDuty (DNS logs) D) AWS Firewall Manager Answer: C Explanation: GuardDuty analyzes VPC Flow Logs, CloudTrail, and DNS query logs to detect malicious activity. Question 49. What is the effect of attaching an IAM role to an EC2 instance via an instance profile? A) The instance can assume the role's permissions without needing access keys. B) The role’s policies are applied only when a user logs in via SSH. C) The instance profile encrypts the instance’s root volume. D) The role can be used to create S3 bucket policies automatically. Answer: A Explanation: Instance profiles provide temporary credentials to the instance, enabling role‑based access. Question 50. In a multi‑AZ RDS Aurora cluster, what component provides read scaling across AZs? A) Aurora Replicas B) Multi‑AZ standby C) DB Parameter Group D) Aurora Global Database Answer: A Explanation: Aurora Replicas can be placed in different AZs and serve read traffic, scaling reads horizontally. Question 51. Which Route 53 routing policy would you use to send 70 % of traffic to version A of an application and 30 % to version B? A) Simple B) Weighted C) Latency
D) Geoproximity Answer: B Explanation: Weighted routing distributes traffic based on assigned weights. Question 52. Which of the following best describes an “Egress‑Only Internet Gateway”? A) It provides inbound traffic to IPv4 resources in a private subnet. B) It allows outbound IPv6 traffic from a VPC to the internet while blocking inbound traffic. C) It is used for NAT translation for IPv4 traffic. D) It encrypts all traffic leaving the VPC. Answer: B Explanation: Egress‑Only IGWs support outbound-only IPv6 traffic. Question 53. What is the primary benefit of using AWS Organizations SCPs with “Deny” statements? A) They automatically encrypt all data in the organization. B) They prevent member accounts from performing actions even if an IAM policy allows them. C) They reduce the cost of CloudTrail logging. D) They enable cross‑account S3 bucket replication. Answer: B Explanation: SCPs set the maximum permissions; a “Deny” overrides any allow in an IAM policy. Question 54. Which S3 storage class is optimized for infrequently accessed data that requires rapid retrieval? A) S3 Standard B) S3 Intelligent‑Tiering C) S3 Glacier Instant Retrieval D) S3 One Zone‑IA Answer: C
Question 58. Which CloudWatch metric would you use to detect a possible memory leak on an EC instance? A) CPUUtilization B) DiskWriteOps C) MemoryUtilization (custom metric) D) NetworkOut Answer: C Explanation: Memory usage isn’t provided natively; you must publish a custom MemoryUtilization metric. Question 59. In AWS Systems Manager Session Manager, what is the primary security benefit compared to SSH? A) Sessions are logged to CloudWatch Logs and require no inbound ports. B) Session Manager automatically encrypts EBS volumes. C) It disables all IAM permissions for the instance. D) It provides root access to all users by default. Answer: A Explanation: Session Manager works over the SSM agent, eliminating the need for open SSH ports and logs session activity. Question 60. Which IAM policy element defines the actions that are allowed or denied? A) Effect B) Action C) Resource D) Condition Answer: B Explanation: The “Action” element lists the API operations the statement applies to.
Question 61. What is the default behavior of a Security Group rule that allows inbound TCP port 22 from 0.0.0.0/0? A) Only instances in the same security group can connect. B) Any IPv4 address on the internet can attempt SSH connections. C) The rule is ignored because 0.0.0.0/0 is invalid. D) It blocks all inbound traffic. Answer: B Explanation: 0.0.0.0/0 represents all IPv4 addresses, so the rule opens SSH globally. Question 62. Which of the following best describes a “Network ACL” rule order? A) Rules are evaluated based on the highest rule number first. B) Rules are evaluated in alphabetical order of the rule description. C) Rules are evaluated from the lowest rule number to the highest, and the first match is applied. D) All rules are applied simultaneously. Answer: C Explanation: NACLs process rules sequentially starting at the lowest number; the first matching rule determines the action. Question 63. What does AWS WAF’s “Rate‑based rule” protect against? A) SQL injection attacks only B) Excessive requests from a single IP address (DDoS) C) Cross‑site scripting in HTML pages D) Unauthorized IAM role assumption Answer: B Explanation: Rate‑based rules count requests per IP and block when a threshold is exceeded. Question 64. Which AWS service provides a managed, automated, continuous compliance assessment against industry standards? A) AWS Config