Courseiva

Databricks-DE-Pro Data Security and Compliance Practice Question

A data engineer is configuring a Unity Catalog external location to allow access to an S3 bucket. The security team requires that all access to the bucket be authenticated using a specific IAM role, and that the credentials not be stored in Databricks. Which Unity Catalog object should the engineer create to meet this requirement?

⚠ Common exam trap

Test-takers frequently confuse instance profiles, which are used for cluster-level S3 access outside Unity Catalog, with storage credentials, which are the Unity Catalog mechanism for external locations.

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

✓

A storage credential that assumes the IAM role using AWS STS.

Unity Catalog storage credentials are the correct object for authenticating to cloud storage. They reference an IAM role that Databricks assumes via AWS STS, providing temporary credentials without storing secrets. External locations then reference the storage credential and define the bucket path. This design meets the requirement of using a specific IAM role and avoiding stored credentials.

Answer analysis

Option-by-option breakdown

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

  • ✓

    A storage credential that assumes the IAM role using AWS STS.

    Why this is correct

    A Unity Catalog storage credential encapsulates an IAM role that Databricks assumes using AWS STS to obtain temporary credentials. This avoids storing long-lived credentials in Databricks and allows the security team to control access via the IAM role's trust policy. It is the correct way to authenticate access to an S3 bucket from Unity Catalog.

  • ✗

    A storage credential that references the IAM role via an instance profile.

    Why it's wrong here

    Instance profiles are used for AWS clusters to access S3, but they are not the Unity Catalog mechanism for external locations. Unity Catalog uses storage credentials that assume an IAM role, not instance profiles, to provide temporary credentials. Using an instance profile would not integrate with Unity Catalog's governance model and could bypass Unity Catalog access controls.

  • ✗

    A service principal with an attached IAM role in AWS.

    Why it's wrong here

    A Databricks service principal is an identity for running jobs and accessing Databricks resources, but it does not directly authenticate to AWS S3. Access to S3 from Unity Catalog is mediated by a storage credential that assumes an IAM role. A service principal alone would not provide the required S3 authentication mechanism.

  • ✗

    An external location that directly embeds the IAM role's access key and secret key.

    Why it's wrong here

    Embedding long-lived access keys in an external location is not supported and violates the requirement to avoid storing credentials in Databricks. Unity Catalog external locations reference a storage credential, which in turn references an IAM role. Storing keys would be a security risk and is not the intended design.

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

One of 267 original Databricks-DE-Pro practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written and reviewed by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

Last reviewed September 2026 · checked against the official Databricks exam blueprint

This Databricks-DE-Pro practice question is part of Courseiva's free Databricks 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 Databricks-DE-Pro exam.