All practice questions
976 questions
A SysOps Administrator is configuring an Amazon CloudFront distribution to serve private files from an Amazon S3 bucket. The S3 bucket is encrypted with SSE-KMS using an AWS Key Management Service (AWS KMS) customer managed key. The administrator creates an Origin Access Control (OAC), associates it with the distribution's S3 origin, and updates the S3 bucket policy to allow the CloudFront service principal to retrieve objects. Despite these configurations, when users attempt to access files via CloudFront, they receive an HTTP 403 Forbidden error.
Which of the following actions will resolve this issue?
An EC2 instance with private IP address is hosted in a private subnet and runs an HTTPS service on TCP port . The instance is associated with a security group named `sg-secure` and the subnet is associated with a network ACL named `nacl-custom`.
An external client at IP address attempts to connect to the HTTPS service on the instance. A SysOps Administrator configures VPC Flow Logs to capture traffic on the instance's elastic network interface (ENI). The flow log output shows the following records:
text
version account-id interface-id srcaddr dstaddr srcport dstport protocol packets bytes start end action log-status
2 123456789012 eni-0a1b2c3d4e5f6g7h8 198.51.100.5 10.0.1.50 49152 443 6 5 260 1601828400 1601828460 ACCEPT OK
2 123456789012 eni-0a1b2c3d4e5f6g7h8 10.0.1.50 198.51.100.5 443 49152 6 5 260 1601828400 1601828460 REJECT OK
The configuration of the security group `sg-secure` is:
- Inbound: Allow TCP port from
- Outbound: Allow all traffic (destination , all ports)
The configuration of the network ACL `nacl-custom` is:
- Inbound:
- Rule 100: Allow TCP port from
- Rule 32767: Deny all traffic
- Outbound:
- Rule 100: Allow TCP port to
- Rule 32767: Deny all traffic
Which of the following changes will resolve the connectivity issue and allow the client to successfully establish a connection to the HTTPS service?
A SysOps Administrator is hosting a public website on an Amazon EC2 instance within a custom VPC. The Security Group associated with the EC2 instance allows all outbound traffic and inbound HTTP traffic on port 80. The Network ACL (NACL) associated with the subnet has an inbound rule that allows HTTP traffic on TCP port 80 from 0.0.0.0/0. However, external users cannot connect to the website. Which configuration change is required to allow external traffic to reach the web server?
A company hosts a dynamic web application with a primary origin hosted on an Application Load Balancer (ALB) in the us-east-1 Region. To ensure high availability, the company deploys a secondary origin on another ALB in the us-west-2 Region. A SysOps administrator needs to configure Amazon CloudFront to automatically route traffic to the secondary ALB when the primary ALB returns HTTP 502 or 504 status codes. Which two configurations must the SysOps administrator implement to achieve this failover behavior? (Select TWO.)
Select all that apply
A company manages a multi-account environment using AWS Organizations with consolidated billing. The workloads are distributed as follows:
- The production account runs a steady-state fleet of Amazon EC2 m6i.large instances.
- The staging account runs microservices on Amazon ECS with AWS Fargate.
- The analytics account runs batch processing using AWS Lambda functions.
The SysOps administrator must implement a cost optimization strategy that achieves the maximum possible savings across Fargate, Lambda, and EC2 workloads while allowing the EC2 instance families to be changed in the future. Which of the following actions should the SysOps administrator take to meet these requirements? (Select TWO.)
Select all that apply
A company runs a data processing application in a single AWS account. The application uses a fleet of Amazon EC2 instances in an Auto Scaling group that dynamically scales between and `c6i.large` instances depending on queue depth. The application also invokes AWS Lambda functions to perform lightweight pre-processing on incoming data. Additionally, a single `db.r6g.large` Amazon RDS for PostgreSQL database runs continuously to store processing metadata. The company wants to minimize costs over the next year with a commitment plan, while retaining the flexibility to change EC2 instance families in the future if needed. Which combination of purchases should the SysOps administrator make to achieve the maximum cost optimization? (Select TWO.)
Select all that apply
A SysOps team is tasked with reducing compute costs for a new serverless application. The application's architecture includes a mix of Amazon EC2 instances, AWS Fargate containers, and AWS Lambda functions across several AWS Regions. Which commitment-based pricing model should the SysOps team select to optimize costs with the greatest flexibility?
A company hosts a static website using Amazon CloudFront. The security team mandates that all communication between the viewers and the CloudFront distribution must be encrypted in transit. Which two Viewer Protocol Policy settings will satisfy this requirement? (Select TWO.)
Select all that apply
A company currently hosts a batch processing workload on a fleet of Amazon EC2 instances in the region. Over the next year, the company plans to modernize the workload by migrating of the processing to containerized tasks running on AWS Fargate in the same region, and upgrading the remaining EC2 instances to the newer instance family. Which commitment-based discount option should a SysOps administrator recommend to optimize costs for both the remaining EC2 instances and the Fargate tasks without requiring manual exchanges or interventions?
A company manages a multi-account AWS environment using AWS Organizations with consolidated billing enabled. The environment has two member accounts:
* Account A (Production) runs a steady-state web application on Amazon EC2 instances and Amazon ECS on AWS Fargate.
* Account B (Testing) runs temporary development workloads using various EC2 instance families (such as and ) that are frequently stopped, started, or terminated.
The company wants to optimize its compute costs. The SysOps administrator must ensure that the commitment discount is applied to both the Fargate tasks and the EC2 instances in Account A as a priority, and is not consumed by the fluctuating workloads in Account B.
Which strategy should the SysOps administrator implement to meet these requirements?
A SysOps Administrator applied the tag key `CostCenter` to several Amazon EC2 instances and Amazon S3 buckets to track project expenditures. However, when analyzing costs, the `CostCenter` tag key does not appear as a filtering option in AWS Cost Explorer. Which two actions must the SysOps Administrator perform to resolve this issue and track costs by this tag? (Select TWO.)
Select all that apply
A SysOps administrator is troubleshooting a low cache hit ratio on an Amazon CloudFront distribution that serves content from an Application Load Balancer (ALB). The administrator observes that the distribution is forwarding all query string parameters and headers to the ALB origin, which causes identical content requests with different user-agent headers and tracking query strings to be cached as separate objects. The origin application only requires the session_id query string parameter to function correctly. Which configuration change will improve the cache hit ratio while ensuring the application still receives the required parameter?
A company distributes a multilingual web application globally using an Amazon CloudFront distribution. The origin server requires the viewer's language preference and device type to return the correct localized version of the page. Currently, the CloudFront distribution has a cache policy that forwards the raw `User-Agent` and `Accept-Language` headers to the origin. A SysOps administrator reports that the cache hit ratio is less than 5% because of the high variance in these headers. Which combination of actions should the administrator take to improve the cache hit ratio while ensuring the origin still receives the correct localization and device information?
A SysOps Administrator is managing a multi-account AWS environment under a single organization in AWS Organizations. To track department spending, the administrator deploys a Tag Policy at the organization root that enforces the CostCenter tag on all Amazon EC2 instances. Several member accounts deploy new EC2 instances successfully, compliant with the policy. However, when the administrator runs a query in AWS Cost Explorer in the management account grouping by the CostCenter tag, all costs are grouped under the 'No tag key' category. What should the administrator do to ensure the cost data is properly categorized by the tag key in Cost Explorer?
A SysOps administrator is configuring an Amazon CloudFront distribution to serve static content from an Amazon S3 bucket. The administrator must secure the content so that viewers can only access the files through CloudFront, preventing direct access to the S3 bucket. Which action should the administrator take to meet this security requirement?
A SysOps Administrator is configuring a VPC Flow Log to capture network traffic from a subnet and deliver it to an Amazon CloudWatch Logs log group. The administrator has already created the target log group and an IAM role with the necessary permissions for the VPC Flow Logs service to publish logs. However, during the creation process, the administrator receives an 'Access Denied' error. In addition, the administrator wants to ensure that the logs do not persist indefinitely to manage storage costs.
Which of the following actions should the administrator take to resolve the error and manage log retention? (Select TWO.)
Select all that apply
An administration team needs to secure a collection of premium media files delivered via an Amazon CloudFront distribution. The media files are stored in a private Amazon S3 bucket and encrypted using an AWS KMS customer managed key. The security requirements state that the S3 bucket must not be publicly accessible, and access to the files must be restricted to authorized subscribers. Additionally, subscribers must be able to view multiple files in a single session without changing the application's current URL paths.
Which combination of configurations will meet these requirements? (Select TWO.)
Select all that apply
A SysOps Administrator has configured an Amazon VPC Traffic Mirroring session to send traffic from an Amazon EC2 instance (source) to an appliance instance (target) for deep packet inspection. The administrator notices that the target appliance is not receiving any mirrored packets. Which of the following configuration issues could cause this problem? (Select TWO.)
Select all that apply
A company manages a multi-account environment using AWS Organizations with consolidated billing enabled. The SysOps administrator is reviewing the compute usage for the following workloads:
* Production Account: A steady-state fleet of Amazon EC2 instances running in the Region, and a dynamically scaling web application running on Amazon ECS with AWS Fargate.
* Development Account: A fleet of EC2 instances that are shut down outside of business hours, and various AWS Lambda functions for sporadic testing.
The company wants to implement a cost optimization strategy that maximizes savings while providing flexibility for the scaling and serverless workloads.
Which combination of actions should the SysOps administrator take to meet these requirements? (Select TWO.)
Select all that apply
An organization uses AWS Organizations with consolidated billing. A SysOps administrator enforces a tag policy across all member accounts to ensure all Amazon EC2 instances are tagged with `InitiativeID` for tracking project costs. After verifying that the member accounts have compliant resources with the `InitiativeID` tag applied, the administrator attempts to create a cost-budget in the management account but finds that `InitiativeID` is missing from the tag filter list in the AWS Budgets console. Which action must the administrator perform to resolve this issue?