# Which connection type is better for my AWS  account with Dynatrace:- Role-based authentication or Key-based authentication ?

**URL:** <https://community.dynatrace.com/t/which-connection-type-is-better-for-my-aws-account-with-dynatrace-role-based-authentication-or-key-based-authentication/20921>\
**Category:** Cloud platforms\
**Tags:** aws, data-privacy-and-product-security\
**Created:** [June 11, 2019, 8:40am UTC](https://community.dynatrace.com/t/which-connection-type-is-better-for-my-aws-account-with-dynatrace-role-based-authentication-or-key-based-authentication/20921 "2019-06-11T08:40:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![saurabhkumar\_pa](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@saurabhkumar\_pa](https://community.dynatrace.com/u/saurabhkumar_pa)\
**Post date:** [June 11, 2019, 8:40am UTC](https://community.dynatrace.com/t/which-connection-type-is-better-for-my-aws-account-with-dynatrace-role-based-authentication-or-key-based-authentication/20921/1 "2019-06-11T08:40:00Z")

</div>

Which connection type is better for my AWS account with Dynatrace:- Role-based authentication or Key-based authentication ?

I want to know in terms of on dynatrace billing and security.

---

<div class="post-metadata">

**Author:** ![luke\_boyling](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/luke_boyling/32/11066_2.png) [@luke\_boyling](https://community.dynatrace.com/u/luke_boyling)\
**Post date:** [June 18, 2019, 10:22am UTC](https://community.dynatrace.com/t/which-connection-type-is-better-for-my-aws-account-with-dynatrace-role-based-authentication-or-key-based-authentication/20921/2 "2019-06-18T10:22:26Z")

</div>

Moved to the Dynatrace Open Q&A forum where it;s likely to get an answer.

---

<div class="post-metadata">

**Author:** ![MaciejNeumann](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@MaciejNeumann](https://community.dynatrace.com/u/MaciejNeumann)\
**Post date:** [December 13, 2022, 12:35pm UTC](https://community.dynatrace.com/t/which-connection-type-is-better-for-my-aws-account-with-dynatrace-role-based-authentication-or-key-based-authentication/20921/3 "2022-12-13T12:35:42Z")

</div>

Hello&nbsp;[@saurabhkumar\_pa](https://community.dynatrace.com/user/35240),

Here you can check out the documentation article about the access methods for AWS:

[Set up Dynatrace Managed for AWS monitoring](https://www.dynatrace.com/support/help/setup-and-configuration/setup-on-cloud-platforms/amazon-web-services/aws-monitoring-with-dynatrace-managed#access-methods)

As you can see there, we’re recommending as a best practice use of temporary security credentials (IAM roles)&nbsp;instead of access keys and disabling any AWS account root user access keys.
