Courseiva
Operations and MaintenancehardMultiple SelectObjective-mapped

PAS-C01 Operations and Maintenance Practice Question

Exhibit

Refer to the exhibit.

CloudFormation template snippet:
Resources:
  SAPApplicationServer:
    Type: AWS::EC2::Instance
    Properties:
      InstanceType: m5.large
      ImageId: ami-0abcdef1234567890
      SecurityGroupIds:
        - !Ref SecurityGroup
      UserData:
        Fn::Base64: !Sub |
          #!/bin/bash
          yum install -y s3fs-fuse
          mkdir /mnt/sap
          s3fs my-sap-bucket /mnt/sap
      Tags:
        - Key: Name
          Value: SAP-APP

An administrator deploys the CloudFormation stack above. The EC2 instance launches but the s3fs mount fails. Which TWO actions are needed to fix the issue? (Choose two.)

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Create an IAM role with permissions to access the S3 bucket and attach it to the EC2 instance.

Options A and B are correct. The EC2 instance needs an IAM role with S3 bucket permissions (A) and the role must be attached via an IAM instance profile in the CloudFormation template (B). Option C is incorrect because outbound HTTPS is already allowed by default security group rules and S3 uses HTTPS. Option D is incorrect because bucket region does not affect access; cross-region access works. Option E is incorrect because the UserData script runs as root, so 'sudo' is unnecessary and may cause the command to fail if sudo is not configured.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Create an IAM role with permissions to access the S3 bucket and attach it to the EC2 instance.

    Why this is correct

    s3fs requires IAM credentials; an instance profile provides them.

  • Add an IAM instance profile to the EC2 instance resource in the CloudFormation template.

    Why this is correct

    The instance profile is needed to associate the IAM role with the instance.

  • Modify the security group to allow outbound HTTPS traffic.

    Why it's wrong here

    S3 access uses HTTPS, but security group outbound is typically open by default.

  • Ensure the S3 bucket is in the same region as the EC2 instance.

    Why it's wrong here

    S3 is global; region does not affect access.

  • Add 'sudo' before the s3fs command in the UserData script.

    Why it's wrong here

    UserData runs as root, so sudo is unnecessary.

Quick reference

AWS S3 Storage Class Comparison

Storage ClassMin DurationRetrievalUse Case
S3 StandardNoneImmediateFrequently accessed data
S3 Standard-IA30 daysImmediateInfrequent access, rapid retrieval
S3 One Zone-IA30 daysImmediateNon-critical infrequent data
S3 Intelligent-TieringNoneImmediate–hoursUnknown or changing access patterns
S3 Glacier Instant90 daysMillisecondsArchive with instant retrieval
S3 Glacier Flexible90 daysMinutes–hoursArchive, flexible retrieval
S3 Glacier Deep Archive180 daysHoursLong-term compliance archive

About these practice questions

This PAS-C01 question is part of Courseiva's 1,616-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This PAS-C01 practice question is part of Courseiva's free Amazon Web Services certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the PAS-C01 exam.